<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>字符串对象</title>
	<script>

		// obj = new String();
		
		str = "学并思是一个学习平台";

		// str[1] = "而";
		// console.log(str.slice(3,8));
		// console.log(str.substr(3,3));
		// console.log(str.indexOf('学'));
		// 
		// console.log(str.replace('学','二'));
		// console.log(str.match('是'));
		// console.log(str.charAt(1));
		// console.log(str[1]);

		str = "1.jpg,2.png,logo.gif";



		arr = str.split(",");

		console.log(arr);

		str = "Rdgsd";

		a = str.toLowerCase();
		a = str.toUpperCase();


		// "Fn7y"  fn7y  "FN7Y" fn7y
		

		str = "HSDfgjksD";

		str = "hsdFGJKSd"

		console.log(a)


	</script>
</head>
<body>
	
</body>
</html>